package cn.itcast.es.repository;

import cn.itcast.es.pojo.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author xu
 * @version v1.0
 * @date 2019/4/23 21:35
 * @description TODO
 **/
    public interface GoodsRepository extends ElasticsearchRepository<Goods, Long> {


        List<Goods> findByPriceBetween(Double begin, Double end);

    }